package com.kgc.collection.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SalesCollectiondetail implements Serializable {

  private int id;
  private String collectionCode;
  private BigDecimal collectionAmount;//本次收款金额
  private BigDecimal discountAmount;//本次折扣
  private String notes;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date createTime;
  private String createBy;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date updateTime;
  private String updateBy;
  private String sourceSheet;
  private int isDelete;
  private int accountId;
  private int payId;
  private BigDecimal fee;


  public SalesCollectiondetail() {
  }

  public SalesCollectiondetail(int id, String collectionCode, BigDecimal collectionAmount, BigDecimal discountAmount, String notes, Date createTime, String createBy, Date updateTime, String updateBy, String sourceSheet, int isDelete, int accountId, int payId, BigDecimal fee) {
    this.id = id;
    this.collectionCode = collectionCode;
    this.collectionAmount = collectionAmount;
    this.discountAmount = discountAmount;
    this.notes = notes;
    this.createTime = createTime;
    this.createBy = createBy;
    this.updateTime = updateTime;
    this.updateBy = updateBy;
    this.sourceSheet = sourceSheet;
    this.isDelete = isDelete;
    this.accountId = accountId;
    this.payId = payId;
    this.fee = fee;
  }



  public int getAccountId() {
    return accountId;
  }

  public void setAccountId(int accountId) {
    this.accountId = accountId;
  }

  public int getPayId() {
    return payId;
  }

  public void setPayId(int payId) {
    this.payId = payId;
  }

  public BigDecimal getFee() {
    return fee;
  }

  public void setFee(BigDecimal fee) {
    this.fee = fee;
  }

  public int getIsDelete() {
    return isDelete;
  }

  public void setIsDelete(int isDelete) {
    this.isDelete = isDelete;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getCollectionCode() {
    return collectionCode;
  }

  public void setCollectionCode(String collectionCode) {
    this.collectionCode = collectionCode;
  }

  public BigDecimal getCollectionAmount() {
    return collectionAmount;
  }

  public void setCollectionAmount(BigDecimal collectionAmount) {
    this.collectionAmount = collectionAmount;
  }

  public BigDecimal getDiscountAmount() {
    return discountAmount;
  }

  public void setDiscountAmount(BigDecimal discountAmount) {
    this.discountAmount = discountAmount;
  }

  public String getNotes() {
    return notes;
  }

  public void setNotes(String notes) {
    this.notes = notes;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getCreateBy() {
    return createBy;
  }

  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public String getUpdateBy() {
    return updateBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }

  public String getSourceSheet() {
    return sourceSheet;
  }

  public void setSourceSheet(String sourceSheet) {
    this.sourceSheet = sourceSheet;
  }

  @Override
  public String toString() {
    return "SalesCollectiondetail{" +
            "id=" + id +
            ", collectionCode='" + collectionCode + '\'' +
            ", collectionAmount=" + collectionAmount +
            ", discountAmount=" + discountAmount +
            ", notes='" + notes + '\'' +
            ", createTime=" + createTime +
            ", createBy='" + createBy + '\'' +
            ", updateTime=" + updateTime +
            ", updateBy='" + updateBy + '\'' +
            ", sourceSheet='" + sourceSheet + '\'' +
            ", isDelete=" + isDelete +
            ", accountId=" + accountId +
            ", payId=" + payId +
            ", fee=" + fee +
            '}';
  }
}
